/**
 * Copyright (C) 2024
 * All rights reserved, Designed By www.joolun.com
 * 注意：
 * 本软件为www.joolun.com开发研制，未经购买不得使用
 * 购买后可获得全部源代码（禁止转卖、分享、上传到码云、github等开源平台）
 * 一经发现盗用、分享等行为，将追究法律责任，后果自负
 */
import http from "@/api/api";

function getPage(query) {
  return http.requestNew("get", "/mall/configlogistics/page", {
    params: query
  });
}

function addObj(obj) {
  return http.requestNew("post", "/mall/configlogistics", {
    data: obj
  });
}

function getObj(id) {
  return http.requestNew("get", "/mall/configlogistics/" + id);
}
function getLogisticsCompany() {
  return http.requestNew("get", "/mall/configlogistics/logisticscompany");
}

function delObj(id) {
  return http.requestNew("delete", "/mall/configlogistics/" + id);
}

function putObj(obj) {
  return http.requestNew("put", "/mall/configlogistics", {
    data: obj
  });
}
function getObj2() {
  return http.requestNew("get", "/mall/configlogistics");
}
export {
  getPage,
  addObj,
  getObj,
  delObj,
  putObj,
  getObj2,
  getLogisticsCompany
};
